﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="hhTuvan.ascx.cs" Inherits="eDream.Page.hhTuvan" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<div style="margin-top: 20px">
    <div class="cloum_text">
        Từ ngày
    </div>
    <div class="cloum_1">
        <dx:ASPxDateEdit ID="dteFrom" runat="server" Theme="DevEx" Height="29px"></dx:ASPxDateEdit>
    </div>
    <div class="cloum_text">
        Đến ngày
    </div>
    <div class="cloum_1">
        <dx:ASPxDateEdit ID="dteTo" runat="server" Theme="DevEx" Height="29px"></dx:ASPxDateEdit>
    </div>
    <div class="cloum_text">
        Loại 
    </div>
    <div class="cloum_1">
        <dx:ASPxComboBox ID="cbxLoai" runat="server" ValueType="System.String" Theme="DevEx" Height="29px">
            <Items>
                <dx:ListEditItem Text="Tất cả" Value="0" />
                <dx:ListEditItem Text="Trực tiếp" Value="1" />
                <dx:ListEditItem Text="Tư vấn" Value="2" />
            </Items>
        </dx:ASPxComboBox>
    </div>
    <div class="cloum_1">
        <dx:ASPxButton ID="btnTim" runat="server" Text="Tìm" Theme="iOS" AutoPostBack="false" OnClick="btnTim_Click">
           
        </dx:ASPxButton>
    </div>
    <div class="Clear"></div>
    <div class="grvConten">
        <dx:ASPxCallbackPanel ID="ASPxCallbackPanel1" runat="server" ClientInstanceName="cpanl" OnCallback="ASPxCallbackPanel1_Callback"  Width="100%">
            <PanelCollection>
                <dx:PanelContent>
                    <dx:ASPxGridView ID="grvResult" runat="server" Theme="DevEx" Width="100%" AutoGenerateColumns="False"  KeyFieldName="Id" OnHtmlRowPrepared="grvResult_HtmlRowPrepared" OnLoad="grvResult_Load">                       
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="STT" Name="colRowID" VisibleIndex="0"
                                Width="20px">
                                <DataItemTemplate>
                                    <dx:ASPxLabel ID="lblRowID" runat="server" Text='<%# Container.ItemIndex + 1 %>'>
                                    </dx:ASPxLabel>
                                </DataItemTemplate>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="0" FieldName="Id" ReadOnly="True" Visible="false">
                                <EditFormSettings Visible="False"/>
                                <HeaderStyle HorizontalAlign="Center" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Họ và tên" VisibleIndex="5" FieldName="FullName" Width="25%">
                                <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center"/>
                                <CellStyle Wrap="True"></CellStyle>
                                
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Loại" VisibleIndex="6" FieldName="Loai" Width="10%">
                                 <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center"/>
                                <CellStyle Wrap="True"></CellStyle>
                                
                             </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Hoa hồng" VisibleIndex="7" FieldName="Hoahong" Width="10%">
                                 <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center"/>
                                 <CellStyle Wrap="True"></CellStyle>
                                <FooterCellStyle ForeColor="Red" Font-Bold="true"></FooterCellStyle>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataDateColumn ShowInCustomizationForm="True" Caption="Ngày giao dịch" VisibleIndex="8" FieldName="Ngaygiaodich" Width="15%">
                                 <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center"/>
                                <CellStyle Wrap="True"></CellStyle>
                                <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy"></PropertiesDateEdit>
                            </dx:GridViewDataDateColumn>
                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Đã đóng" VisibleIndex="9" FieldName="Dadong" Width="10%">
                                 <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center"/>
                                <CellStyle Wrap="True"></CellStyle>
                                
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Chuyển tiền" VisibleIndex="10" FieldName="Chuyentien" Width="15%">
                                 <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center"/>
                                <CellStyle Wrap="True"></CellStyle>
                                
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataDateColumn FieldName="Ngaychuyen" Caption="Ngày chuyển" ShowInCustomizationForm="True" VisibleIndex="11" Width="15%">
                                 <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center"/>
                                <CellStyle Wrap="True"></CellStyle>
                                <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy"></PropertiesDateEdit>
                            </dx:GridViewDataDateColumn>
                           
                        </Columns>
                        <Settings ShowFooter="true"  ShowFilterRow="true" ShowFilterBar="Auto"/>
                        <TotalSummary>
                            <dx:ASPxSummaryItem FieldName="Hoahong" SummaryType="Sum"  DisplayFormat="C0"/>
                        </TotalSummary>
                      <SettingsPager Mode="ShowAllRecords" ></SettingsPager>
                       <SettingsBehavior AllowSort="true" />
                    </dx:ASPxGridView>
                    
                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxCallbackPanel>
        
        
    </div>

</div>
